home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 5 (Internal Edition)
/
Apple R&P Lib Internal v5.0.iso
/
3-Presentations
/
Markets
/
Education
/
HyperCard In Education
/
Math Quizzer
/
card_3127.txt
< prev
next >
Wrap
Text File
|
1990-04-02
|
8KB
|
377 lines
-- card: 3127 from stack: in
-- bmap block id: 3790
-- flags: 0000
-- background id: 2658
-- name:
----- HyperTalk script -----
on openCard
hide card field 7
hide card field 9
hide card field 10
put 0 into card field 9
put 0 into card field 10
put 0 into card field 2
put 0 into card field 3
put " " into card field 4
repeat with x=11 to 13
hide card field x
end repeat
hide card field 6
hide card field 8
end openCard
-- part 1 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=18 top=21 right=39 bottom=117
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 3 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=17 top=42 right=97 bottom=119
-- title width / last selected line: 0
-- icon id / first selected line: 31685 / 31685
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Push to Get Numbers
----- HyperTalk script -----
on mouseUp
hide card field 11
hide card field 12
hide card field 13
put " " into card field 4
hide card field 8
hide card field 7
hide card field 6
hide card field 9
hide card field 10
put the random of 9 into x
put the random of 10 into y
put the random of 10 into z
put x*100 into nex
put (y-1)*10 into ney
put z-1 into nez
put nex+ney+nez into card field 2
put the random of 9 into x
put the random of 10 into y
put the random of 10 into z
put x*100 into nex
put (y-1)*10 into ney
put z-1 into nez
put nex+ney+nez into card field 3
show card field 5
show card button id 10
end mouseUp
-- part 4 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=147 top=173 right=188 bottom=194
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 7 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=248 top=173 right=188 bottom=290
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 8 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=339 top=172 right=187 bottom=399
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 9 (field)
-- low flags: 80
-- high flags: 0004
-- rect: left=342 top=108 right=158 bottom=395
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 10 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=309 top=200 right=222 bottom=431
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Push when Ready
----- HyperTalk script -----
on mouseUp
put card field 10+1 into card field 10
hide card button id 10
hide card field 5
put card field two into numb1
put card field three into numb2
put card field four into numb3
if numb1+numb2=numb3
then show card field 6
else show card field 7
if numb1+numb2=numb3
then put card field 9+1 into card field 9
put numb1 + numb2 into card field 8
show card field 8
show card field 9
show card field 10
show card field 11
show card field 12
show card field 13
end mouseUp
-- part 11 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=213 top=249 right=281 bottom=340
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 12 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=213 top=204 right=235 bottom=338
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 13 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=213 top=234 right=249 bottom=339
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 14 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=201 top=308 right=324 bottom=227
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 15 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=272 top=308 right=324 bottom=298
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 16 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=227 top=308 right=324 bottom=272
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 17 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=96 top=308 right=324 bottom=201
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 18 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=298 top=308 right=324 bottom=455
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 19 (button)
-- low flags: 00
-- high flags: 8000
-- rect: left=0 top=265 right=315 bottom=101
-- title width / last selected line: 0
-- icon id / first selected line: 2162 / 2162
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return
----- HyperTalk script -----
on mouseUp
go to card 1
end mouseUp
-- part 20 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=16 top=319 right=340 bottom=76
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Return
----- HyperTalk script -----
on mouseUp
pop card
end mouseUp
-- part contents for card part 1
----- text -----
Addition Card
-- part contents for card part 4
----- text -----
0
-- part contents for card part 7
----- text -----
0
-- part contents for card part 9
----- text -----
Put answer below:
-- part contents for card part 8
----- text -----
-- part contents for card part 12
----- text -----
Wrong! The correct answer was
-- part contents for card part 11
----- text -----
was the correct answer. Good job!
-- part contents for card part 13
----- text -----
638
-- part contents for card part 15
----- text -----
0
-- part contents for card part 14
----- text -----
0
-- part contents for card part 17
----- text -----
You have gotten
-- part contents for card part 16
----- text -----
out of
-- part contents for card part 18
----- text -----
addition problems right.